use Akturk2020Data
poisson mplack auto intershare PR elsq leftshare mneigh pmus mps, cluster(cowcode) // Poisson Model without Institutionalized Ethnocultural Diversity (IED)
eststo poisson1
poisson mplack MEIP10 auto intershare PR elsq leftshare mneigh pmus mps, cluster(cowcode) //Poisson Model with IED
eststo poisson2
nbreg mplack auto intershare PR elsq leftshare mneigh pmus mps, cluster(cowcode) // Negative Binomial Model without IED
eststo nbreg1
nbreg mplack MEIP10 auto intershare PR elsq leftshare mneigh pmus mps, cluster(cowcode) // Negative Binomial Model with IED
eststo nbreg2
margins, at(MEIP10=(0(.1)1)) atmeans // Margins for IED
marginsplot, xlabel(0(.1)1) recast(line) recastci(rarea) noci // Margins Plotted
esttab poisson1 poisson2 nbreg1 nbreg2, se pr2 label compress // Combined Table with Results
